﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using System.Text;

namespace BankServiceHost
{
    class Program
    {
        static void Main(string[] args)
        {
            Type instanceType =  typeof(BankService.BankServiceImplementation);
            ServiceHost host = new ServiceHost(instanceType);

            using (host)
            {
                host.Open();

                Console.WriteLine("Bank service running. Press <ENTER> to quit.");

                new BankService.BankServiceImplementation();
                
                Console.ReadLine();

                Console.WriteLine("exit...");

                host.Close();
            }
        }
    }
}
